<#escape x as jsonUtils.encodeJSONString(x)>
{
   "members":
   [
      	<#list members as m>
	    <#assign groups = people.getContainerGroups(m)>
            <#assign isDefault = 'false'>
        	<#list groups as g>
		    <#if (g.properties.authorityName == group)>
			<#assign isDefault = 'true'>
		    <#else>
            	    </#if>
		</#list>
        	{
            	"userId": "${m.id}",
            	"userName": "${m.properties.userName}",
            	"firstName": "${m.properties.firstName}",
            	"lastName": "${m.properties.lastName}",
            	"isDefault": "${isDefault}"
        	}
    	    <#if m_has_next>,</#if>
	</#list>
   ]
}
</#escape>